-- 2022-8-2

--[[
    -- 省略
]]

-- 练习
function F(x)
    return{
        set = function (y)
            x = y
        end,
        get = function ()
            return x
        end
    }
end
o1 = F(10)
print(o1)
o2 = F(20)
print(o2)
print(o1.get(),o2.get())
o2.set(100)
o1.set(300)
print(o1.get(),o2.get())